package com.yuntuzhilian.chapter4.demo3;

/**
 * @author MrWang-shuizhishuiheshui
 * @description 狗类---子类
 * extends:继承    子类 extends 父类
 */
public class Dog extends Pet {
    //展示

    @Override
    public void show(){
        System.out.println("父类属性信息:name,health,love");
        System.out.println("子类私有信息:strain");
    }
}
